package com.aiclient.controller;

import com.aiclient.model.Chat;
import javafx.scene.control.ListCell;

public class ChatListCell extends ListCell<Chat> {
    @Override
    protected void updateItem(Chat chat, boolean empty) {
        super.updateItem(chat, empty);
        
        if (empty || chat == null) {
            setText(null);
            setGraphic(null);
        } else {
            setText(chat.getTitle());
            getStyleClass().add("chat-list-cell");
        }
    }
} 